package com.code.google.wormon.base;

import java.awt.Canvas;

import javax.swing.JFrame;

public class GameFrame extends JFrame {
	private static final long serialVersionUID = 3180950266348349560L;

	public GameFrame(String gameTitle, Game game) {
		this.setSize(game.getScreenWidth(), game.getScreenHeight());
		this.setResizable(false);
		this.setTitle(gameTitle);
		this.getContentPane().add((Canvas) game);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setLocation(10, 500);
	}
}
